import Layout from '@/layout'

// 组织架构路由设计规则：/departments ==> @/views/department/index.vue
export default {
  path: '/departments',
  component: Layout,
  // 二级路由：组织架构是Layout的二级路由
  children: [
    {
      path: '', // 如果二级路由是""，表示一级路由也是二级路由 '/departments' + '' === '/departments'
      component: () => import('@/views/department'),
      name: 'department', //
      meta: {
        // 存储了一些路由基础信息，用于在侧边栏显示的
        icon: 'tree', // svg图标
        title: '组织' // 菜单选项名字
      }
    }
  ]
}
